#ifndef __TAP_H__
#define __TAP_H__


#include "scps.h"
#include "scps_ip.h"
#include "scpsudp.h"
#include <unistd.h>
#include "tp_debug.h"  // Included for LOG_PACKET in case DEBUG_TCPTRACE is defined.
#include <linux/if_tun.h>


int tap_open (char dev []);
int ll_tap_qk_send (int tun_fd, unsigned char *data, int len);

int ll_tap_send  (struct gwio *gwio, uint32_t remote_internet_addr,
                  int protocol, int data_len, struct msghdr *my_msg,
                  route *a_route, scps_np_rqts *rqts);

int tap_ind (struct gwio *gwio, struct llbuf **buffer,
             int max_len, int *offset, scps_np_rqts *rqts);

void gateway_tap_cleanup(int a);

void gateway_tap_rules (void);
#endif


